const express = require('express');
const router = express.Router();
const weworkController = require('../controllers/weworkController');

// 企业微信数据接口
router.post('/wework/data', weworkController.getWeworkData);
router.get('/wework/data', weworkController.getWeworkData);

// 企业微信验证回调
router.get('/wework/callback', weworkController.verifyCallback);

// 企业微信消息回调
router.post('/wework/callback', weworkController.handleMessage);

module.exports = router;